package com.yh.patterns.combination.organization_office;

/**
 * @Auther:云尚学Java
 * 抽象构件
 */
public class OrganizationComponent {
    private String name;
    public String getName() {
        return this.name;
    }
    public void setName(String newName) {
        this.name = newName;
    }

    public void addComponent(OrganizationComponent organizationComponent) {
    }
    public void removeComponent(OrganizationComponent organizationComponent) {

    }

    public OrganizationComponent getChild(int i) {
        return null;
    }

    public void sendMessage(String msg) {
    }

    public void onMessage() {
    }
}

